// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.dialect.mysql.ast.MySqlObject;
// import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlExtPartition;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableAddExtPartition.h"
#include "../../dialect/mysql/ast/statement/MySqlExtPartition.h"
#include "../../dialect/mysql/visitor/MySqlASTVisitor.h"
#include "../../visitor/SQLASTVisitor.h"

// @Override
void SQLAlterTableAddExtPartition::accept0(MySqlASTVisitor_ptr visitor)
{
  visitor->SQLASTVisitor::visit(SharedObject(SQLAlterTableAddExtPartition));
  visitor->SQLASTVisitor::endVisit(SharedObject(SQLAlterTableAddExtPartition));
}

// @Override
void SQLAlterTableAddExtPartition::accept0(SQLASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(SQLAlterTableAddExtPartition));
  visitor->endVisit(SharedObject(SQLAlterTableAddExtPartition));
}

void SQLAlterTableAddExtPartition::setExPartition(MySqlExtPartition_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(SQLAlterTableAddExtPartition));
  }
  this->extPartition = x;
}

MySqlExtPartition_ptr SQLAlterTableAddExtPartition::getExtPartition()
{
  return extPartition;
}
